<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="java.util.ArrayList,java.util.List,java.util.Map,java.util.HashMap" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Uber Flashcard Extravaganza</title>
</head>
<H1 ALIGN="center">Uber Flashcard Extravaganza!</H1>
<body>

<FORM ALIGN="center" action="/FlashCardsMcKeever/Flash" method="post"> 
<TABLE BORDER=2 ALIGN="center">
<TR>
<TD>
<%	
	String front = (String) request.getSession(true).getAttribute("theFront");
	String back = (String) request.getSession(true).getAttribute("theBack");
	String report = (String) request.getSession(true).getAttribute("report");
	Boolean side = (Boolean) request.getSession(true).getAttribute("side");
	if (side == null)
		side = true;
	if (front != null && back != null) {
		if (side) {
        	out.println(front);
		} else {
        	out.println(back);
		}
	} else {
		out.println("NULL LIST");
	}
%>
</TD>
</TR>
</TABLE>
<br>
<%	
if (report != null){
	out.print(report);
}
%>
<br>
<INPUT type="submit" name="FCButton" value="Prev Card">
<INPUT type="submit" name="FCButton" value="Flip Card">
<INPUT type="submit" name="FCButton" value="Random Card">
<INPUT type="submit" name="FCButton" value="Next Card">
<br>
<!-- <SELECT name="SchemeSelector"> -->
<!-- <OPTION value="MyScheme">MyScheme</OPTION> -->
<!-- <OPTION value="YourScheme">YourScheme</OPTION> -->
<!-- </SELECT> -->
<INPUT type="submit" name="FCButton" value="Add Card">
<INPUT type="submit" name="FCButton" value="Remove Card">
<INPUT type="submit" name="FCButton" value="Search Deck">
<!-- <SELECT name="DeckSelector"> -->
<!-- <OPTION value="MyDeck">MyDeck</OPTION> -->
<!-- <OPTION value="YourDeck">YourDeck</OPTION> -->
<!-- </SELECT> -->
</FORM>
</body>
</html>